package com.lagou;

import com.lagou.service.UserServiceImpl;
import com.lagou.service.ZkConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author 13771
 * @date 2020/8/31 11:14
 * @description
 */
@SpringBootApplication
public class ServerBootStrap {

    public static void main(String[] args) throws InterruptedException {
        String ip = "127.0.0.1";
        int port = 8998;
        UserServiceImpl.startServer(ip,port);
        SpringApplication.run(ServerBootStrap.class, args);
        new Thread(new ZkConfig()).start();
    }
}
